<?php

namespace common\models;

use Yii;

/**
 * This is the model class for table "teacher".
 *
 * @property string $id
 * @property string $teahcer
 */
class Teacher extends \yii\db\ActiveRecord
{
    /**
     * @inheritdoc
     */
    public static function tableName()
    {
        return 'teacher';
    }

    /**
     * @inheritdoc
     */
    public function rules()
    {
        return [
            [['teahcer'], 'required'],
            [['teahcer'], 'string', 'max' => 255],
        ];
    }

    /**
     * @inheritdoc
     */
    public function attributeLabels()
    {
        return [
            'id' => 'ID',
            'teahcer' => 'Teahcer',
        ];
    }
}
